define({ "api": [
  {
    "description": "<p>by Jim //     * @api              {post} /index/get-advertisement-detail 获取广告详情 //     * @apiName          get-advertisement-detail //     * @apiVersion       1.0.0 //     * @apiParam {int} ad_id //     * @apiGroup         Index //     * @apiSampleRequest /index/get-advertisement-detail?flagsign=1 //     * @apiSuccessExample {json} 获取成功 //     * { //     *  <code>ad_id</code> int(11) NOT NULL AUTO_INCREMENT COMMENT '广告位id', //     *  <code>title</code> varchar(255) NOT NULL COMMENT '广告标题', //     *  <code>pic</code> varchar(255) NOT NULL COMMENT '图片', //     *  <code>content</code> varchar(255) DEFAULT NULL COMMENT '图文内容', //     *  <code>position</code> tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '广告位置：0去玩模块；1去买模块', //     *  <code>status</code> tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态：默认0无效，1有效', //     * } //     * @apiError         none //</p>",
    "type": "",
    "url": "",
    "version": "0.0.0",
    "filename": "controllers/IndexController.php",
    "group": "D__wamp64_www_wanju_api_controllers_IndexController_php",
    "groupTitle": "D__wamp64_www_wanju_api_controllers_IndexController_php",
    "name": ""
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/index/get-adv-by-id",
    "title": "获取具体广告",
    "name": "get_adv_by_id",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "adv_id",
            "description": "<p>广告id</p>"
          }
        ]
      }
    },
    "group": "Index",
    "sampleRequest": [
      {
        "url": "/index/get-adv-by-id?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n `ad_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '广告位id',\n `title` varchar(255) NOT NULL COMMENT '广告标题',\n `pic` varchar(255) NOT NULL COMMENT '图片',\n `content` varchar(255) DEFAULT NULL COMMENT '图文内容',\n `position` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '广告位置：0去玩模块；1去买模块',\n `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态：默认0无效，1有效',\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/IndexController.php",
    "groupTitle": "Index"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/index/get-advertisement",
    "title": "获取广告",
    "name": "get_advertisement",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "type",
            "description": "<p>类型：0去玩模块；1去买模块</p>"
          }
        ]
      }
    },
    "group": "Index",
    "sampleRequest": [
      {
        "url": "/index/get-advertisement?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n `ad_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '广告位id',\n `title` varchar(255) NOT NULL COMMENT '广告标题',\n `pic` varchar(255) NOT NULL COMMENT '图片',\n `content` varchar(255) DEFAULT NULL COMMENT '图文内容',\n `position` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '广告位置：0去玩模块；1去买模块',\n `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态：默认0无效，1有效',\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/IndexController.php",
    "groupTitle": "Index"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/index/get-article",
    "title": "平台介绍",
    "name": "get_article",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "article_id",
            "description": "<p>文章id 默认传1，取第一个</p>"
          }
        ]
      }
    },
    "group": "Index",
    "sampleRequest": [
      {
        "url": "/index/get-article?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n    `article_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '文章id',\n    `article_name` varchar(255) NOT NULL COMMENT '文章标题',\n    `content` text COMMENT '内容',\n    `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态，默认1有效，0无效',\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/IndexController.php",
    "groupTitle": "Index"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/index/get-cloest-shop",
    "title": "获取最近商店",
    "name": "get_cloest_shop",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "longitude",
            "description": "<p>当前所在经纬度，供计算商店距离</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "latitude",
            "description": "<p>当前所在经纬度，供计算商店距离</p>"
          }
        ]
      }
    },
    "group": "Index",
    "sampleRequest": [
      {
        "url": "/index/get-cloest-shop?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n    `shop_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '商家id',\n    `shop_no` varchar(255) NOT NULL COMMENT '商家编号',\n    `zone_id` int(11) unsigned NOT NULL COMMENT '地址id',\n    `address` varchar(255) NOT NULL COMMENT '店铺地址',\n    `shop_name` varchar(255) NOT NULL COMMENT '商家名称',\n    `shop_parent_name` varchar(255) NOT NULL COMMENT '店铺名称',\n    `longitude` int(3) unsigned NOT NULL COMMENT '经度',\n    `latitude` int(3) unsigned NOT NULL COMMENT '纬度',\n    `shop_pic` varchar(255) NOT NULL COMMENT '商家图片',\n    `shop_pics` text NOT NULL COMMENT '商家图片集',\n    `description` text NOT NULL COMMENT '商家介绍',\n    `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态：默认0无效，1有效',\n    `owner_user_id` int(11) unsigned NOT NULL COMMENT '店主id,取tbl_user表的id',\n    `owner_user_name` varchar(255) NOT NULL,\n    `contract_start_time` datetime DEFAULT NULL COMMENT '合同开始时间',\n    `contract_end_time` datetime DEFAULT NULL COMMENT '合同结束时间',\n    `contract_create_time` datetime DEFAULT NULL COMMENT '合同创建时间',\n    `city_id` varchar(10) NOT NULL COMMENT '城市id',\n    `district_id` varchar(10) NOT NULL COMMENT '区id',\n    `street_id` varchar(10) NOT NULL COMMENT '街道id',\n    distance 距离\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/IndexController.php",
    "groupTitle": "Index"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/index/get-question",
    "title": "常见问题列表",
    "name": "get_question",
    "version": "1.0.0",
    "group": "Index",
    "sampleRequest": [
      {
        "url": "/index/get-question?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "[{\n    `article_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '文章id',\n    `article_name` varchar(255) NOT NULL COMMENT '文章标题',\n    `content` text COMMENT '内容',\n    `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态，默认1有效，0无效',\n}]\n//拿到article_id使用/index/get-article接口调用文章内容",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/IndexController.php",
    "groupTitle": "Index"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/index/get-shop-list",
    "title": "获取商店列表",
    "name": "get_shop_list",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "region_code",
            "description": "<p>精准的位置编码</p>"
          },
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "tag_id",
            "description": "<p>标签id，默认为0是全部</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "longitude",
            "description": "<p>当前所在经纬度，供计算商店距离</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "latitude",
            "description": "<p>当前所在经纬度，供计算商店距离</p>"
          }
        ]
      }
    },
    "group": "Index",
    "sampleRequest": [
      {
        "url": "/index/get-shop-list?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "[{\n `shop_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '商家id',\n    `shop_no` varchar(255) NOT NULL COMMENT '商家编号',\n    `address` varchar(255) NOT NULL COMMENT '店铺地址',\n    `shop_name` varchar(255) NOT NULL COMMENT '商家名称',\n    `shop_parent_name` varchar(255) NOT NULL COMMENT '店铺名称',\n    `longitude` varchar(10) unsigned NOT NULL COMMENT '经度',\n    `latitude` varchar(10) unsigned NOT NULL COMMENT '纬度',\n    `shop_pic` varchar(255) NOT NULL COMMENT '商家图片',\n    `shop_pics` text NOT NULL COMMENT '商家图片集',\n    `description` text NOT NULL COMMENT '商家介绍',\n    `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态：默认0无效，1有效',\n    `owner_user_id` int(11) unsigned NOT NULL COMMENT '店主id,取tbl_user表的id',\n    `owner_user_name` varchar(255) NOT NULL,\n    `contract_start_time` datetime DEFAULT NULL COMMENT '合同开始时间',\n    `contract_end_time` datetime DEFAULT NULL COMMENT '合同结束时间',\n    `contract_create_time` datetime DEFAULT NULL COMMENT '合同创建时间',\n    `city_id` varchar(10) NOT NULL COMMENT '城市id',\n    `district_id` varchar(10) NOT NULL COMMENT '区id',\n    `street_id` varchar(10) NOT NULL COMMENT '街道id',\n     distance 距离\n     tag:[{\n        `tag_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标签id',\n        `tag_name` varchar(255) NOT NULL COMMENT '标签名称',\n        `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态：0无效，默认1有效',\n     }]\n}]",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/IndexController.php",
    "groupTitle": "Index"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/order/cancel-order",
    "title": "核销卡券、提货、回收商品",
    "name": "cancel_order",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "order_no",
            "description": "<p>核销的订单no</p>"
          },
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "type",
            "description": "<p>类型：默认0为核销体验券，1为核销体验卡，2为提货商品，3为回收商品'</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "access_token",
            "description": ""
          }
        ]
      }
    },
    "group": "Order",
    "sampleRequest": [
      {
        "url": "/order/cancel-order?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n\n    }",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "200003",
            "description": "<p>fail 200002 请登录店长账户进行核销</p>"
          }
        ]
      }
    },
    "filename": "controllers/OrderController.php",
    "groupTitle": "Order"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/order/cancel-order-by-hand",
    "title": "手动核销卡券、提货、回收商品",
    "name": "cancel_order_by_hand",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "cancel_no",
            "description": "<p>核销的订单no</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "access_token",
            "description": ""
          }
        ]
      }
    },
    "group": "Order",
    "sampleRequest": [
      {
        "url": "/order/cancel-order-by-hand?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n\n    }",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "200003",
            "description": "<p>fail 200002 请登录店长账户进行核销</p>"
          }
        ]
      }
    },
    "filename": "controllers/OrderController.php",
    "groupTitle": "Order"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/order/get-cancel-count",
    "title": "店铺数据统计",
    "name": "get_cancel_count",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "shop_id",
            "description": ""
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "cancel_time",
            "description": "<p>'2018-06'</p>"
          }
        ]
      }
    },
    "group": "Order",
    "sampleRequest": [
      {
        "url": "/order/get-cancel-count?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": " {\n \"total\": 158,  总收入\n\"experience_total\": 8, 体验收入\n\"sale_total\": 150, 销售收入\n\"recovery_total\": 0, 回收收入\n\"recharge_total\": 0, 充值收入\n  }",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/OrderController.php",
    "groupTitle": "Order"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/order/get-cancel-detail",
    "title": "扫码后订单详情",
    "name": "get_cancel_detail",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "order_no",
            "description": "<p>订单号</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "access_token",
            "description": ""
          }
        ]
      }
    },
    "group": "Order",
    "sampleRequest": [
      {
        "url": "/order/get-cancel-detail?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n    `order_id` int(11) NOT NULL AUTO_INCREMENT,\n    `order_no` varchar(255) NOT NULL COMMENT '订单编号',（二维码编号）\n    `type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '订单类型：默认0，play类型，1,goods类型',\n    `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '订单状态：0未支付,1已付款，2,已提货，3使用中，4已使用或已回收',\n    `gp_id` int(11) unsigned NOT NULL COMMENT '商品或者体验券id',\n    `current_num` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '体验卡或者体验券当前有效次数，商品为0，体验券为0或者1，体验卡为0+',\n     `price` decimal(10,2) unsigned NOT NULL,\n    `order_time` datetime NOT NULL COMMENT '下单时间',\n    `pay_time` datetime DEFAULT NULL COMMENT '支付时间',\n    `expire_time` date NOT NULL COMMENT '有效时间',\n    `user_id` int(11) unsigned NOT NULL COMMENT ' 购买用户id',\n    `shop_id` int(11) unsigned DEFAULT NULL COMMENT '自提点商店',\ngoods(play):{goods_name(play_name)商品名或者卡券名，通过type判断}\nphone 购买者电话\nshop_name 关联商店\n    }",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/OrderController.php",
    "groupTitle": "Order"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/order/get-cancel-list",
    "title": "使用记录",
    "name": "get_cancel_list",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "access_token",
            "description": ""
          }
        ]
      }
    },
    "group": "Order",
    "sampleRequest": [
      {
        "url": "/order/get-cancel-list?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "[{\n    `cancel_id` int(11) NOT NULL AUTO_INCREMENT,\n    `order_id` int(11) unsigned NOT NULL,\n    `manager_id` int(11) unsigned NOT NULL COMMENT '店长id',\n    `shop_id` int(11) unsigned NOT NULL COMMENT '核销或者回收的商店',\n    `type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '类型：默认0为核销体验券，1为核销体验卡，2为提货商品，3为回收商品',\n    `cancel_time` datetime NOT NULL COMMENT '核销或回收时间',\nshop_name 商店名\n\n\n    }]",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/OrderController.php",
    "groupTitle": "Order"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/order/get-cancel-list-by-myself",
    "title": "收入明细和数据统计",
    "name": "get_cancel_list_by_myself",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "access_token",
            "description": ""
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "cancel_time",
            "description": "<p>‘2018-04’</p>"
          }
        ]
      }
    },
    "group": "Order",
    "sampleRequest": [
      {
        "url": "/order/get-cancel-list-by-myself?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "\n\"total\": 158,\n\"experience_total\": 8,\n\"sale_total\": 150,\n\"recovery_total\": 0,\n\"recharge_total\": 0,\n\"list\": [\n{\n\"cancel_id\": \"1\",\n\"order_id\": \"4\",\n\"manager_id\": \"1\",\n\"shop_id\": \"1\",\n\"type\": null,\n\"cancel_time\": \"2018-04-26 15:47:37\",\n\"order_no\": \"A426134625760030\",\n\"status\": \"1\",\n\"gp_id\": \"1\",\n\"current_num\": \"0\",\n\"order_time\": \"2018-04-26 11:31:02\",\n\"pay_time\": \"2018-04-26 14:10:12\",\n\"expire_time\": null,\n\"user_id\": \"3\",\n\"price\": \"50.00\",\n\"ext_goods_id\": null,\n\"remark\": null,\n\"phone\": \"18664699096\",\n\"play_id\": \"3\",\n\"play_name\": null,\n\"num\": null,\n\"goods_id\": \"1\",\n\"goods_name\": \"商品1\",\n\"real_price\": \"50.00\",\n\"recovery_num\": \"10\",\n\"goods_pic\": \"/default_goods.jpg\",\n\"goods_pics\": \"/default_goods_1.jpg,/default_goods_2.jpg\",\n\"summary\": \"test\",\n\"effective_days\": \"30\",\n\"age\": \"6岁以下\",\n\"model\": \"SN_001\",\n\"description\": \"test\",\n\"cancel_type\": \"2\",\n\"order_type\": \"1\",\n\"commission\": 10\n},\n{\n\"cancel_id\": \"2\",\n\"order_id\": \"4\",\n\"manager_id\": \"1\",\n\"shop_id\": \"1\",\n\"type\": null,\n\"cancel_time\": \"2018-04-26 15:48:52\",\n\"order_no\": \"A426134625760030\",\n\"status\": \"1\",\n\"gp_id\": \"1\",\n\"current_num\": \"0\",\n\"order_time\": \"2018-04-26 11:31:02\",\n\"pay_time\": \"2018-04-26 14:10:12\",\n\"expire_time\": null,\n\"user_id\": \"3\",\n\"price\": \"50.00\",\n\"ext_goods_id\": null,\n\"remark\": null,\n\"phone\": \"18664699096\",\n\"play_id\": \"3\",\n\"play_name\": null,\n\"num\": null,\n\"goods_id\": \"1\",\n\"goods_name\": \"商品1\",\n\"real_price\": \"50.00\",\n\"recovery_num\": \"10\",\n\"goods_pic\": \"/default_goods.jpg\",\n\"goods_pics\": \"/default_goods_1.jpg,/default_goods_2.jpg\",\n\"summary\": \"test\",\n\"effective_days\": \"30\",\n\"age\": \"6岁以下\",\n\"model\": \"SN_001\",\n\"description\": \"test\",\n\"cancel_type\": \"2\",\n\"order_type\": \"1\",\n\"commission\": 10\n},\n{\n\"cancel_id\": \"3\",\n\"order_id\": \"4\",\n\"manager_id\": \"1\",\n\"shop_id\": \"1\",\n\"type\": null,\n\"cancel_time\": \"2018-04-26 16:01:23\",\n\"order_no\": \"A426134625760030\",\n\"status\": \"1\",\n\"gp_id\": \"1\",\n\"current_num\": \"0\",\n\"order_time\": \"2018-04-26 11:31:02\",\n\"pay_time\": \"2018-04-26 14:10:12\",\n\"expire_time\": null,\n\"user_id\": \"3\",\n\"price\": \"50.00\",\n\"ext_goods_id\": null,\n\"remark\": null,\n\"phone\": \"18664699096\",\n\"play_id\": \"3\",\n\"play_name\": null,\n\"num\": null,\n\"goods_id\": \"1\",\n\"goods_name\": \"商品1\",\n\"real_price\": \"50.00\",\n\"recovery_num\": \"10\",\n\"goods_pic\": \"/default_goods.jpg\",\n\"goods_pics\": \"/default_goods_1.jpg,/default_goods_2.jpg\",\n\"summary\": \"test\",\n\"effective_days\": \"30\",\n\"age\": \"6岁以下\",\n\"model\": \"SN_001\",\n\"description\": \"test\",\n\"cancel_type\": \"2\",\n\"order_type\": \"1\",\n\"commission\": 10\n},\n{\n\"cancel_id\": \"4\",\n\"order_id\": \"4\",\n\"manager_id\": \"1\",\n\"shop_id\": \"1\",\n\"type\": null,\n\"cancel_time\": \"2018-04-26 16:11:32\",\n\"order_no\": \"A426134625760030\",\n\"status\": \"1\",\n\"gp_id\": \"1\",\n\"current_num\": \"0\",\n\"order_time\": \"2018-04-26 11:31:02\",\n\"pay_time\": \"2018-04-26 14:10:12\",\n\"expire_time\": null,\n\"user_id\": \"3\",\n\"price\": \"50.00\",\n\"ext_goods_id\": null,\n\"remark\": null,\n\"phone\": \"18664699096\",\n\"play_id\": \"3\",\n\"play_name\": null,\n\"num\": null,\n\"goods_id\": \"1\",\n\"goods_name\": \"商品1\",\n\"real_price\": \"50.00\",\n\"recovery_num\": \"10\",\n\"goods_pic\": \"/default_goods.jpg\",\n\"goods_pics\": \"/default_goods_1.jpg,/default_goods_2.jpg\",\n\"summary\": \"test\",\n\"effective_days\": \"30\",\n\"age\": \"6岁以下\",\n\"model\": \"SN_001\",\n\"description\": \"test\",\n\"cancel_type\": \"2\",\n\"order_type\": \"1\",\n\"commission\": 10\n},\n{\n\"cancel_id\": \"5\",\n\"order_id\": \"4\",\n\"manager_id\": \"1\",\n\"shop_id\": \"1\",\n\"type\": null,\n\"cancel_time\": \"2018-04-26 16:14:13\",\n\"order_no\": \"A426134625760030\",\n\"status\": \"1\",\n\"gp_id\": \"1\",\n\"current_num\": \"0\",\n\"order_time\": \"2018-04-26 11:31:02\",\n\"pay_time\": \"2018-04-26 14:10:12\",\n\"expire_time\": null,\n\"user_id\": \"3\",\n\"price\": \"50.00\",\n\"ext_goods_id\": null,\n\"remark\": null,\n\"phone\": \"18664699096\",\n\"play_id\": \"3\",\n\"play_name\": null,\n\"num\": null,\n\"goods_id\": \"1\",\n\"goods_name\": \"商品1\",\n\"real_price\": \"50.00\",\n\"recovery_num\": \"10\",\n\"goods_pic\": \"/default_goods.jpg\",\n\"goods_pics\": \"/default_goods_1.jpg,/default_goods_2.jpg\",\n\"summary\": \"test\",\n\"effective_days\": \"30\",\n\"age\": \"6岁以下\",\n\"model\": \"SN_001\",\n\"description\": \"test\",\n\"cancel_type\": \"2\",\n\"order_type\": \"1\",\n\"commission\": 10\n},\n{\n\"cancel_id\": \"8\",\n\"order_id\": \"1\",\n\"manager_id\": \"1\",\n\"shop_id\": null,\n\"type\": \"0\",\n\"cancel_time\": \"2018-04-27 00:12:11\",\n\"order_no\": \"A426119480250062\",\n\"status\": null,\n\"gp_id\": \"1\",\n\"current_num\": \"1\",\n\"order_time\": \"2018-04-26 11:05:48\",\n\"pay_time\": \"2018-04-30 00:04:02\",\n\"expire_time\": \"30\",\n\"user_id\": \"3\",\n\"price\": \"20.00\",\n\"ext_goods_id\": null,\n\"remark\": null,\n\"phone\": \"18664699096\",\n\"play_id\": null,\n\"play_name\": \"一人畅玩\",\n\"num\": \"1\",\n\"goods_id\": null,\n\"goods_name\": null,\n\"real_price\": null,\n\"recovery_num\": null,\n\"goods_pic\": null,\n\"goods_pics\": null,\n\"summary\": null,\n\"effective_days\": null,\n\"age\": null,\n\"model\": null,\n\"description\": null,\n\"cancel_type\": \"0\",\n\"order_type\": \"0\",\n\"commission\": 8\n}\n]\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/OrderController.php",
    "groupTitle": "Order"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/order/get-order-list",
    "title": "购买和充值记录",
    "name": "get_order_list",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "type",
            "description": "<p>0体验券和玩具，1充值</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "access_token",
            "description": ""
          }
        ]
      }
    },
    "group": "Order",
    "sampleRequest": [
      {
        "url": "/order/get-order-list?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "[{\n    `order_id` int(11) NOT NULL AUTO_INCREMENT,\n    `order_no` varchar(255) NOT NULL COMMENT '订单编号',（二维码编号）\n    `type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '订单类型：默认0，play类型，1,goods类型',\n    `status` 订单状态：0未支付,1.待使用，2待提货 3,待回收，4.使用中,5已使用，6已完成，7已过期',\n    `gp_id` int(11) unsigned NOT NULL COMMENT '商品或者体验券id',\n    `current_num` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '体验卡或者体验券当前有效次数，商品为0，体验券为0或者1，体验卡为0+',（体验卡要调用具体的play时里面的值）\n    `order_time` datetime NOT NULL COMMENT '下单时间',\n    `pay_time` datetime DEFAULT NULL COMMENT '支付时间',\n    `expire_time` date NOT NULL COMMENT '有效时间',\n    `user_id` int(11) unsigned NOT NULL COMMENT ' 购买用户id',\n    `shop_id` int(11) unsigned DEFAULT NULL COMMENT '自提点商店',\n`price` decimal(10,2) unsigned NOT NULL, 价格\n    goods_name(play_name)商品名或者卡券名，通过type判断\n\n以下为type为1才有的值\ncategory 0为充值，1为回收 2为系统\ntitle 标题\n\n    }]",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/OrderController.php",
    "groupTitle": "Order"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/order/get-order-list-by-manager",
    "title": "订单管理",
    "name": "get_order_list_by_manager",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "type",
            "description": "<p>-1全部 0卡券 1商品</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "access_token",
            "description": ""
          }
        ]
      }
    },
    "group": "Order",
    "sampleRequest": [
      {
        "url": "/order/get-order-list-by-manager?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "[\n    {\n    \"order_id\": \"4\",\n    \"order_no\": \"A426134625760030\",\n    \"type\": null,\n    \"status\": \"1\",\n    \"gp_id\": \"1\",\n    \"current_num\": \"0\",\n    \"order_time\": \"2018-04-26 11:31:02\",\n    \"pay_time\": \"2018-04-26 14:10:12\",\n    \"expire_time\": null,\n    \"user_id\": \"3\",\n    \"shop_id\": \"1\",\n    \"price\": null,\n    \"ext_goods_id\": null,\n    \"remark\": null,\n    \"play_id\": \"3\",\n    \"play_name\": null,\n    \"num\": null,\n    \"goods_id\": \"1\",\n    \"goods_name\": \"商品1\",\n    \"real_price\": \"50.00\",\n    \"price\": \"50.00\",\n    \"recovery_num\": \"10\",\n    \"goods_pic\": \"/default_goods.jpg\",\n    \"goods_pics\": \"/default_goods_1.jpg,/default_goods_2.jpg\",\n    \"summary\": \"test\",\n    \"effective_days\": \"30\",\n    \"age\": \"6岁以下\",\n    \"model\": \"SN_001\",\n    \"description\": \"test\",\n    \"phone\": \"18664699096\"\n    },\n    {\n    \"order_id\": \"1\",\n    \"order_no\": \"A426119480250062\",\n    \"type\": \"0\",\n    \"status\": null,\n    \"gp_id\": \"1\",\n    \"current_num\": \"1\",\n    \"order_time\": \"2018-04-26 11:05:48\",\n    \"pay_time\": null,\n    \"expire_time\": \"30\",\n    \"user_id\": \"3\",\n    \"shop_id\": null,\n    \"price\": \"20.00\",\n    \"ext_goods_id\": null,\n    \"remark\": null,\n    \"play_id\": null,\n    \"play_name\": \"一人畅玩\",\n    \"num\": \"1\",\n    \"goods_id\": null,\n    \"goods_name\": null,\n    \"real_price\": null,\n    \"price\": null,\n    \"recovery_num\": null,\n    \"goods_pic\": null,\n    \"goods_pics\": null,\n    \"summary\": null,\n    \"effective_days\": null,\n    \"age\": null,\n    \"model\": null,\n    \"description\": null,\n    \"phone\": \"18664699096\"\n    }\n    ]",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/OrderController.php",
    "groupTitle": "Order"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/order/order-detail",
    "title": "订单详情",
    "name": "order_detail",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "order_no",
            "description": "<p>订单号</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "access_token",
            "description": ""
          }
        ]
      }
    },
    "group": "Order",
    "sampleRequest": [
      {
        "url": "/order/order-detail?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n    `order_id` int(11) NOT NULL AUTO_INCREMENT,\n    `order_no` varchar(255) NOT NULL COMMENT '订单编号',（二维码编号）\n    `type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '订单类型：默认0，play类型，1,goods类型',\n    `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '订单状态：0未支付,1已付款，2,已提货，3使用中，4已使用或已回收',\n    `gp_id` int(11) unsigned NOT NULL COMMENT '商品或者体验券id',\n    `current_num` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '体验卡或者体验券当前有效次数，商品为0，体验券为0或者1，体验卡为0+',\n    `price` decimal(10,2) unsigned NOT NULL,\n    `order_time` datetime NOT NULL COMMENT '下单时间',\n    `pay_time` datetime DEFAULT NULL COMMENT '支付时间',\n    `expire_time` date NOT NULL COMMENT '有效时间',\n    `user_id` int(11) unsigned NOT NULL COMMENT ' 购买用户id',\n    `shop_id` int(11) unsigned DEFAULT NULL COMMENT '自提点商店',\ngoods(play):{goods_name(play_name)商品名或者卡券名，通过type判断}\n     is_card 是play类型的体验卡类型\n     phone 购买者电话\n    }",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/OrderController.php",
    "groupTitle": "Order"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/order/submit-order",
    "title": "保存订单",
    "name": "submit_order",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "type",
            "description": "<p>0:卡券，1：商品</p>"
          },
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "goods_play_id",
            "description": "<p>卡券或者商品id</p>"
          },
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "shop_id",
            "description": "<p>自提商店id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "openid",
            "description": "<p>openid</p>"
          },
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "access_token",
            "description": "<p>登录后获取的access_token</p>"
          }
        ]
      }
    },
    "group": "Order",
    "sampleRequest": [
      {
        "url": "/order/submit-order?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n    appid\n    timeStamp\n    nonceStr\n    prepay_id\n    signType(\"MD5\")\n    paySign\norder_no 订单号\n      }",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "200001",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/OrderController.php",
    "groupTitle": "Order"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/play-goods/get-goods",
    "title": "获取商品详情",
    "name": "get_goods",
    "version": "1.0.0",
    "group": "PlayGoods",
    "sampleRequest": [
      {
        "url": "/play-goods/get-goods"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n    `goods_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '商品id',\n    `goods_name` varchar(255) NOT NULL COMMENT '商品名称',\n    `real_price` decimal(10,2) unsigned NOT NULL COMMENT '价格',\n    `price` decimal(10,2) unsigned NOT NULL COMMENT '价格',\n    `recovery_price` decimal(10,2) unsigned NOT NULL COMMENT '价格',\n    `goods_pic` varchar(255) NOT NULL DEFAULT '' COMMENT '商品主图',\n    `goods_pics` text NOT NULL COMMENT '商品轮播图',\n    `summary` varchar(255) DEFAULT NULL,\n    `effective_days` int(10) unsigned NOT NULL COMMENT '回收有效天数',\n    `age` varchar(255) NOT NULL COMMENT '适合年龄',\n    `model` varchar(255) NOT NULL COMMENT '型号',\n    `description` text,\n    `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态：默认0无效，1有效',\n\n    }",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/PlayGoodsController.php",
    "groupTitle": "PlayGoods"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/play-goods/get-goods-list",
    "title": "获取商品列表",
    "name": "get_goods_list",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "region_code",
            "description": "<p>精准的位置编码</p>"
          }
        ]
      }
    },
    "group": "PlayGoods",
    "sampleRequest": [
      {
        "url": "/play-goods/get-goods-list?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "[{\n    `goods_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '商品id',\n    `goods_name` varchar(255) NOT NULL COMMENT '商品名称',\n    `real_price` decimal(10,2) unsigned NOT NULL COMMENT '价格',\n    `price` decimal(10,2) unsigned NOT NULL COMMENT '价格',\n    `recovery_num` int(10) unsigned NOT NULL COMMENT '回收充值次数',\n    `goods_pic` varchar(255) NOT NULL DEFAULT '' COMMENT '商品主图',\n    `goods_pics` text NOT NULL COMMENT '商品轮播图',\n    `summary` varchar(255) DEFAULT NULL,\n    `effective_days` int(10) unsigned NOT NULL COMMENT '回收有效天数',\n    `age` varchar(255) NOT NULL COMMENT '适合年龄',\n    `model` varchar(255) NOT NULL COMMENT '型号',\n    `description` text,\n    `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态：默认0无效，1有效',\n\n    }]",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/PlayGoodsController.php",
    "groupTitle": "PlayGoods"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/play-goods/get-play-card",
    "title": "获取体验卡",
    "name": "get_play_card",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "access_token",
            "description": ""
          }
        ]
      }
    },
    "group": "PlayGoods",
    "sampleRequest": [
      {
        "url": "/play-goods/get-play-card?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n    `order_id` int(11) NOT NULL AUTO_INCREMENT,\n    `order_no` varchar(255) NOT NULL COMMENT '订单编号',\n    `type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '订单类型：默认0，play类型，1,goods类型',\n    `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '订单状态：0未支付,1已付款，2,已提货，3使用中，4已使用或已回收',\n    `gp_id` int(11) unsigned NOT NULL COMMENT '商品或者体验券id',\n    `current_num` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '体验卡或者体验券当前有效次数，商品为0，体验券为0或者1，体验卡为0+',\n    `order_time` datetime NOT NULL COMMENT '下单时间',\n    `pay_time` datetime DEFAULT NULL COMMENT '支付时间',\n    `expire_time` date NOT NULL COMMENT '有效时间',\n    `user_id` int(11) unsigned NOT NULL COMMENT ' 购买用户id',\n    `shop_id` int(11) unsigned DEFAULT NULL COMMENT '自提点商店',\n\n    }",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "400001",
            "description": "<p>请去充值</p>"
          }
        ]
      }
    },
    "filename": "controllers/PlayGoodsController.php",
    "groupTitle": "PlayGoods"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/play-goods/get-play-list",
    "title": "获取卡券列表",
    "name": "get_play_list",
    "version": "1.0.0",
    "group": "PlayGoods",
    "sampleRequest": [
      {
        "url": "/play-goods/get-play-list?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "[\n'quan':(体验券)\n      [{\n    `play_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '体验卡id',\n    `play_name` varchar(255) NOT NULL COMMENT '体验卡名称',\n    `price` decimal(10,2) unsigned NOT NULL COMMENT '价格',\n    `type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '类型：默认0体验券,1体验卡',\n    `num` int(10) unsigned NOT NULL COMMENT '体验卡次数',\n    `expire_time` int(10) unsigned NOT NULL COMMENT ' 有效时间，天数',\n    `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态：默认0无效，1有效',\n\n    }]\n     'cards':(体验卡)\n    [{\n    `play_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '体验卡id',\n    `play_name` varchar(255) NOT NULL COMMENT '体验卡名称',\n    `price` decimal(10,2) unsigned NOT NULL COMMENT '价格',\n    `type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '类型：默认0体验券,1体验卡',\n    `num` int(10) unsigned NOT NULL COMMENT '体验卡次数',\n    `expire_time` int(10) unsigned NOT NULL COMMENT ' 有效时间，天数',\n    `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态：默认0无效，1有效',\n\n    }]\n     ]",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/PlayGoodsController.php",
    "groupTitle": "PlayGoods"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/position/get-city-list",
    "title": "获取城市列表",
    "name": "get_city_list",
    "version": "1.0.0",
    "group": "Position",
    "sampleRequest": [
      {
        "url": "/position/get-city-list?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "[{\n           'A':{\n    `region_code` varchar(45) NOT NULL,\n    `parent_code` varchar(45) DEFAULT NULL,\n    `region_name` varchar(45) DEFAULT NULL,\n    `region_level` varchar(45) DEFAULT NULL,\n    `firstchar` varchar(45) DEFAULT NULL,\n    `remark` varchar(255) DEFAULT NULL,\n     }\n}]",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/PositionController.php",
    "groupTitle": "Position"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/position/get-district-list",
    "title": "获取地区列表",
    "name": "get_district_list",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "region_code",
            "description": "<p>城市列表中获取的region_code</p>"
          }
        ]
      }
    },
    "group": "Position",
    "sampleRequest": [
      {
        "url": "/position/get-district-list?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "[{\n    `region_code` varchar(45) NOT NULL,\n    `parent_code` varchar(45) DEFAULT NULL,\n    `region_name` varchar(45) DEFAULT NULL,\n    `region_level` varchar(45) DEFAULT NULL,\n    `firstchar` varchar(45) DEFAULT NULL,\n    `remark` varchar(255) DEFAULT NULL,\n\n      }]",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/PositionController.php",
    "groupTitle": "Position"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/position/get-region-code",
    "title": "获取精准的地址编码，供后面调用",
    "name": "get_region_code",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "city",
            "description": "<p>城市名</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "district",
            "description": "<p>区名</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "street",
            "description": "<p>街道名</p>"
          }
        ]
      }
    },
    "group": "Position",
    "sampleRequest": [
      {
        "url": "/position/get-region-code?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n     region_code:110101001\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/PositionController.php",
    "groupTitle": "Position"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/position/get-street-list",
    "title": "获取街道列表",
    "name": "get_street_list",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "region_code",
            "description": "<p>地区列表中获取的region_code</p>"
          }
        ]
      }
    },
    "group": "Position",
    "sampleRequest": [
      {
        "url": "/position/get-street-list?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "[{\n    `region_code` varchar(45) NOT NULL,\n    `parent_code` varchar(45) DEFAULT NULL,\n    `region_name` varchar(45) DEFAULT NULL,\n    `region_level` varchar(45) DEFAULT NULL,\n    `firstchar` varchar(45) DEFAULT NULL,\n    `remark` varchar(255) DEFAULT NULL, 周边,\n    `shop_count` int 商店数量\n\n    }]",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/PositionController.php",
    "groupTitle": "Position"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/shop/get-manager-list",
    "title": "人员名单",
    "name": "get_manager_list",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "shop_id",
            "description": "<p>商店id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "access_token",
            "description": ""
          }
        ]
      }
    },
    "group": "Shop",
    "sampleRequest": [
      {
        "url": "/shop/get-manager-list?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "\n{\"owner\": {\n    \"owner_user_name\": \"李主任\"\n    },\n    \"managers\": [\n    {\n    \"manager_id\": \"1\",\n    \"user_id\": \"1\",\n    \"shop_id\": \"1\",\n    \"contract_start_time\": \"2018-04-25 00:15:47\",\n    \"contract_end_time\": \"2019-04-01 00:15:50\",\n    \"contract_create_time\": \"2018-04-25 00:16:05\",\n    \"on_work\": \"1\",\n    \"manager_name\": \"周总\",\n    \"phone\": \"18664699093\"\n    }\n    ]}只有两种角色，店主owner只有一个 店长managers",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/ShopController.php",
    "groupTitle": "Shop"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/shop/get-shop",
    "title": "获取商店信息",
    "name": "get_shop",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "shop_id",
            "description": "<p>商店id</p>"
          }
        ]
      }
    },
    "group": "Shop",
    "sampleRequest": [
      {
        "url": "/shop/get-shop?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n    `shop_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '商家id',\n    `shop_no` varchar(255) NOT NULL COMMENT '商家编号',\n    `zone_id` int(11) unsigned NOT NULL COMMENT '地址id',\n    `address` varchar(255) NOT NULL COMMENT '店铺地址',\n    `shop_name` varchar(255) NOT NULL COMMENT '商家名称',\n    `shop_parent_name` varchar(255) NOT NULL COMMENT '店铺名称',\n    `longitude` int(3) unsigned NOT NULL COMMENT '经度',\n    `latitude` int(3) unsigned NOT NULL COMMENT '纬度',\n    `shop_pic` varchar(255) NOT NULL COMMENT '商家图片',\n    `shop_pics` text NOT NULL COMMENT '商家图片集',\n    `description` text NOT NULL COMMENT '商家介绍',\n    `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态：默认0无效，1有效',\n    `owner_user_id` int(11) unsigned NOT NULL COMMENT '店主id,取tbl_user表的id',\n    `owner_user_name` varchar(255) NOT NULL,\n    `contract_start_time` datetime DEFAULT NULL COMMENT '合同开始时间',\n    `contract_end_time` datetime DEFAULT NULL COMMENT '合同结束时间',\n    `contract_create_time` datetime DEFAULT NULL COMMENT '合同创建时间',\n    `city_id` varchar(10) NOT NULL COMMENT '城市id',\n    `district_id` varchar(10) NOT NULL COMMENT '区id',\n    `street_id` varchar(10) NOT NULL COMMENT '街道id',\nphone 当值店长电话\nmanager_name 当值店长名\n      }",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/ShopController.php",
    "groupTitle": "Shop"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/shop/get-shop-by-myself",
    "title": "登录后获取自己的商店信息",
    "name": "get_shop_by_myself",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "shop_id",
            "description": "<p>商店id（店主可选填）</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "access_token",
            "description": ""
          }
        ]
      }
    },
    "group": "Shop",
    "sampleRequest": [
      {
        "url": "/shop/get-shop-by-myself?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n    `shop_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '商家id',\n    `shop_no` varchar(255) NOT NULL COMMENT '商家编号',\n    `zone_id` int(11) unsigned NOT NULL COMMENT '地址id',\n    `address` varchar(255) NOT NULL COMMENT '店铺地址',\n    `shop_name` varchar(255) NOT NULL COMMENT '商家名称',\n    `shop_parent_name` varchar(255) NOT NULL COMMENT '店铺名称',\n    `longitude` int(3) unsigned NOT NULL COMMENT '经度',\n    `latitude` int(3) unsigned NOT NULL COMMENT '纬度',\n    `shop_pic` varchar(255) NOT NULL COMMENT '商家图片',\n    `shop_pics` text NOT NULL COMMENT '商家图片集',\n    `description` text NOT NULL COMMENT '商家介绍',\n    `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态：默认0无效，1有效',\n    `owner_user_id` int(11) unsigned NOT NULL COMMENT '店主id,取tbl_user表的id',\n    `owner_user_name` varchar(255) NOT NULL,\n    `contract_start_time` datetime DEFAULT NULL COMMENT '合同开始时间',\n    `contract_end_time` datetime DEFAULT NULL COMMENT '合同结束时间',\n    `contract_create_time` datetime DEFAULT NULL COMMENT '合同创建时间',\n    `city_id` varchar(10) NOT NULL COMMENT '城市id',\n    `district_id` varchar(10) NOT NULL COMMENT '区id',\n    `street_id` varchar(10) NOT NULL COMMENT '街道id',\nname 店长或店长的名称\nrole 角色 店长或者店主\n    }",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/ShopController.php",
    "groupTitle": "Shop"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/shop/get-shop-list-by-owner",
    "title": "店主获取商店列表",
    "name": "get_shop_list_by_owner",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "access_token",
            "description": ""
          }
        ]
      }
    },
    "group": "Shop",
    "sampleRequest": [
      {
        "url": "/shop/get-shop-list-by-owner?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "[{\n    `shop_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '商家id',\n    `shop_no` varchar(255) NOT NULL COMMENT '商家编号',\n    `zone_id` int(11) unsigned NOT NULL COMMENT '地址id',\n    `address` varchar(255) NOT NULL COMMENT '店铺地址',\n    `shop_name` varchar(255) NOT NULL COMMENT '商家名称',\n    `shop_parent_name` varchar(255) NOT NULL COMMENT '店铺名称',\n    `longitude` int(3) unsigned NOT NULL COMMENT '经度',\n    `latitude` int(3) unsigned NOT NULL COMMENT '纬度',\n    `shop_pic` varchar(255) NOT NULL COMMENT '商家图片',\n    `shop_pics` text NOT NULL COMMENT '商家图片集',\n    `description` text NOT NULL COMMENT '商家介绍',\n    `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态：默认0无效，1有效',\n    `owner_user_id` int(11) unsigned NOT NULL COMMENT '店主id,取tbl_user表的id',\n    `owner_user_name` varchar(255) NOT NULL,\n    `contract_start_time` datetime DEFAULT NULL COMMENT '合同开始时间',\n    `contract_end_time` datetime DEFAULT NULL COMMENT '合同结束时间',\n    `contract_create_time` datetime DEFAULT NULL COMMENT '合同创建时间',\n    `city_id` varchar(10) NOT NULL COMMENT '城市id',\n    `district_id` varchar(10) NOT NULL COMMENT '区id',\n    `street_id` varchar(10) NOT NULL COMMENT '街道id',\n`city` 城市\n`district` 区\n`street` 街道\n    }]",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/ShopController.php",
    "groupTitle": "Shop"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/user/login",
    "title": "手机登录",
    "name": "bind",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "phone",
            "description": "<p>电话</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "vercode",
            "description": "<p>验证码</p>"
          }
        ]
      }
    },
    "group": "User",
    "sampleRequest": [
      {
        "url": "/user/login?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n    `user_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户id',\n    `phone` varchar(255) NOT NULL COMMENT '电话号码',\n    `type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '用户类型：默认0用户，1店主，2店长',\n    `current_num` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '体验卡当前有效次数',\n    `wechat_name` varchar(255) DEFAULT NULL COMMENT '微信名',\n    `head_img` varchar(255) NOT NULL DEFAULT '' COMMENT '头像',\n    `city` varchar(255) DEFAULT NULL COMMENT '城市',\n    `bind_status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '绑定状态',\n    `bind_time` datetime DEFAULT NULL COMMENT '绑定时间',\n    `create_time` datetime NOT NULL COMMENT '创建时间',\n    `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态',\n    `open_id` varchar(255) DEFAULT NULL COMMENT '微信openid',\n    access_token:\n    }",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "100003",
            "description": "<p>验证码失效；100004验证码出错；100005失败</p>"
          }
        ]
      }
    },
    "filename": "controllers/UserController.php",
    "groupTitle": "User"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/user/logout",
    "title": "退出登录",
    "name": "cancel_order",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "access_token",
            "description": ""
          }
        ]
      }
    },
    "group": "User",
    "sampleRequest": [
      {
        "url": "/user/logout?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n\n    }",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "100006",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/UserController.php",
    "groupTitle": "User"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/user/decode",
    "title": "用户手机解密",
    "name": "decode",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "openid",
            "description": "<p>用户openid</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "iv",
            "description": "<p>加密算法的初始向量</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "encryptedData",
            "description": "<p>包括敏感数据在内的完整用户信息的加密数据</p>"
          }
        ]
      }
    },
    "group": "User",
    "sampleRequest": [
      {
        "url": "/user/decode?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "\n\n     （1） 解密手机号{\n    \"phoneNumber\": \"13580006666\",\n    \"purePhoneNumber\": \"13580006666\",\n    \"countryCode\": \"86\",\n    \"watermark\":\n    {\n    \"appid\":\"APPID\",\n    \"timestamp\":TIMESTAMP\n    }\n    }\n    参数\t类型\t说明\n    phoneNumber\tString\t用户绑定的手机号（国外手机号会有区号）\n    purePhoneNumber\tString\t没有区号的手机号\n    countryCode\tString\t区号\n     （2）解密用户信息返回\n{\n    \"openId\": \"OPENID\",\n    \"nickName\": \"NICKNAME\",\n    \"gender\": GENDER,\n    \"city\": \"CITY\",\n    \"province\": \"PROVINCE\",\n    \"country\": \"COUNTRY\",\n    \"avatarUrl\": \"AVATARURL\",\n    \"unionId\": \"UNIONID\",\n    \"watermark\":\n    {\n    \"appid\":\"APPID\",\n    \"timestamp\":TIMESTAMP\n    }\n    }",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/UserController.php",
    "groupTitle": "User"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/user/get-openid",
    "title": "获取openid",
    "name": "get_openid",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "code",
            "description": "<p>临时登录凭证code</p>"
          }
        ]
      }
    },
    "group": "User",
    "sampleRequest": [
      {
        "url": "/user/get-openid?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n    openid\t用户唯一标识\n    //session_key\t会话密钥\n    unionid\t用户在开放平台的唯一标识符\n    }",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "none",
            "description": ""
          }
        ]
      }
    },
    "filename": "controllers/UserController.php",
    "groupTitle": "User"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/user/get-vercode",
    "title": "发送短信验证码",
    "name": "get_vercode",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "phone",
            "description": "<p>电话</p>"
          }
        ]
      }
    },
    "group": "User",
    "sampleRequest": [
      {
        "url": "/user/get-vercode?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n\n    }",
          "type": "json"
        }
      ]
    },
    "filename": "controllers/UserController.php",
    "groupTitle": "User"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/user/login-by-openid",
    "title": "授权登录",
    "name": "login_by_openid",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "open_id",
            "description": "<p>微信openid</p>"
          }
        ]
      }
    },
    "group": "User",
    "sampleRequest": [
      {
        "url": "/user/login-by-openid?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n    `user_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户id',\n    `phone` varchar(255) NOT NULL COMMENT '电话号码',\n    `type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '用户类型：默认0用户，1店主，2店长',\n    `current_num` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '体验卡当前有效次数',\n    `wechat_name` varchar(255) DEFAULT NULL COMMENT '微信名',\n    `head_img` varchar(255) NOT NULL DEFAULT '' COMMENT '头像',\n    `city` varchar(255) DEFAULT NULL COMMENT '城市',\n    `bind_status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '绑定状态',\n    `bind_time` datetime DEFAULT NULL COMMENT '绑定时间',\n    `create_time` datetime NOT NULL COMMENT '创建时间',\n    `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态',\n    `open_id` varchar(255) DEFAULT NULL COMMENT '微信openid',\n     access_token\n\n     }",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "100002",
            "description": "<p>未绑定手机，跳转到绑定手机的页面</p>"
          },
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "100005",
            "description": "<p>合同已到期，请联系管理员</p>"
          }
        ]
      }
    },
    "filename": "controllers/UserController.php",
    "groupTitle": "User"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/user/on-duty",
    "title": "上班",
    "name": "on_duty",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "int",
            "optional": false,
            "field": "shop_id",
            "description": "<p>商店id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "access_token",
            "description": ""
          }
        ]
      }
    },
    "group": "User",
    "sampleRequest": [
      {
        "url": "/user/on-duty?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n\n    }",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "100006",
            "description": "<p>fail, 100007不是店长</p>"
          }
        ]
      }
    },
    "filename": "controllers/UserController.php",
    "groupTitle": "User"
  },
  {
    "description": "<p>by Jim</p>",
    "type": "post",
    "url": "/user/bind",
    "title": "绑定手机并登录",
    "name": "bind",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "open_id",
            "description": "<p>微openid信</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "phone",
            "description": "<p>电话</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "vercode",
            "description": "<p>验证码</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "wechat_name",
            "description": "<p>微信名</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "head_img",
            "description": "<p>头像</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "gender",
            "description": "<p>性别，0未知，1男性，2女性</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "city",
            "description": "<p>城市</p>"
          }
        ]
      }
    },
    "group": "____",
    "sampleRequest": [
      {
        "url": "/user/bind?flagsign=1"
      }
    ],
    "success": {
      "examples": [
        {
          "title": "获取成功",
          "content": "{\n    `user_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户id',\n    `phone` varchar(255) NOT NULL COMMENT '电话号码',\n    `type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '用户类型：默认0用户，1店主，2店长',\n    `current_num` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '体验卡当前有效次数',\n    `wechat_name` varchar(255) DEFAULT NULL COMMENT '微信名',\n    `head_img` varchar(255) NOT NULL DEFAULT '' COMMENT '头像',\n     `gender` tinyint(1) DEFAULT NULL COMMENT '性别',\n    `city` varchar(255) DEFAULT NULL COMMENT '城市',\n    `bind_status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '绑定状态',\n    `bind_time` datetime DEFAULT NULL COMMENT '绑定时间',\n    `create_time` datetime NOT NULL COMMENT '创建时间',\n    `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态',\n    `open_id` varchar(255) DEFAULT NULL COMMENT '微信openid',\n     access_token\n\n    }",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "optional": false,
            "field": "100003",
            "description": "<p>验证码失效；100004验证码出错；100005失败</p>"
          }
        ]
      }
    },
    "filename": "controllers/UserController.php",
    "groupTitle": "____"
  }
] });
